/**
 * 语音设置相关类型定义
 */

export interface VoiceCharacter {
    id: string;
    name: string;
    description: string;
    vcn: string;
    speed: number;
    volume: number;
    pitch: number;
    category: 'female' | 'male' | 'child' | 'special' | 'dialect';
}

export interface VoiceSettings {
    enabled: boolean;
    currentCharacter: string;
    characters: VoiceCharacter[];
}

export const DEFAULT_VOICE_CHARACTERS: VoiceCharacter[] = [
    // 女性声音
    {
        id: 'xiaoyan',
        name: '小燕',
        description: '温柔女声（默认）',
        vcn: 'xiaoyan',
        speed: 50,
        volume: 50,
        pitch: 50,
        category: 'female'
    },
    {
        id: 'aisjiuxu',
        name: '艾斯',
        description: '御姐音，成熟女声',
        vcn: 'aisjiuxu',
        speed: 45,
        volume: 55,
        pitch: 40,
        category: 'female'
    },
    // 男性声音
    {
        id: 'aisjiuxu_male',
        name: '大叔',
        description: '成熟男声，磁性',
        vcn: 'aisjiuxu',
        speed: 40,
        volume: 60,
        pitch: 30,
        category: 'male'
    },
    {
        id: 'aisxping_male',
        name: '青年',
        description: '青年男声',
        vcn: 'aisxping',
        speed: 50,
        volume: 50,
        pitch: 50,
        category: 'male'
    },
    {
        id: 'aisbabyxu_male',
        name: '小帅',
        description: '阳光男声',
        vcn: 'aisbabyxu',
        speed: 55,
        volume: 50,
        pitch: 55,
        category: 'male'
    },
    {
        id: 'aisjinger_male',
        name: '小刚',
        description: '稳重男声',
        vcn: 'aisjinger',
        speed: 45,
        volume: 55,
        pitch: 45,
        category: 'male'
    },
    // 特殊声音效果（通过调整参数实现）
    {
        id: 'xiaoyan_bubble',
        name: '气泡音',
        description: '气泡音效果',
        vcn: 'xiaoyan',
        speed: 35,
        volume: 45,
        pitch: 20,
        category: 'special'
    },
    {
        id: 'xiaoyan_robot',
        name: '机器人',
        description: '机械音效果',
        vcn: 'xiaoyan',
        speed: 30,
        volume: 50,
        pitch: 10,
        category: 'special'
    },
    {
        id: 'xiaoyan_cute',
        name: '萌音',
        description: '可爱萌音',
        vcn: 'xiaoyan',
        speed: 70,
        volume: 50,
        pitch: 80,
        category: 'special'
    },
    {
        id: 'xiaoyan_deep',
        name: '深沉音',
        description: '深沉磁性',
        vcn: 'xiaoyan',
        speed: 35,
        volume: 60,
        pitch: 25,
        category: 'special'
    },
    // 方言声音
    {
        id: 'xiaorong_sichuan',
        name: '四川话',
        description: '四川方言',
        vcn: 'xiaorong',
        speed: 50,
        volume: 50,
        pitch: 50,
        category: 'dialect'
    },
    {
        id: 'xiaokun_henan',
        name: '河南话',
        description: '河南方言',
        vcn: 'xiaokun',
        speed: 50,
        volume: 50,
        pitch: 50,
        category: 'dialect'
    }
];

export const DEFAULT_VOICE_SETTINGS: VoiceSettings = {
    enabled: true,
    currentCharacter: 'xiaoyan',
    characters: DEFAULT_VOICE_CHARACTERS
};
